/*****************************************************************
**                                                              **
**  Copyright (C) 2004 Amlogic,Inc.                             **
**  All rights reserved                                         **
**        Filename : aw_avi_app.c /Project:AVOS                ** 
**        Revision : 1.0                                        **
**                                                              **
*****************************************************************/
#ifndef __AW_RM_APP_H_
#define __AW_RM_APP_H_

#include "includes.h"
#include "aw_windows.h"
#include "app.h"
#include "datasrc.h"
#include "avi_define.h"
#include "ioapi.h"
#include "user.h"
#include "logo_dat.h" 
#include "aw_AVI_app.h"

extern Playlist_t *rm_playlist;

int GetRMInfo(char *file_name, VIDEO_INFO *video_info);


INT8U RmCmdResponse(AWMSG *pMsg, PCMDSET cmd_set) ;

extern int PlayRMFile(char *file_name);

void AWRMKeyDo(INT32S key) ;

extern void AWRMKeyProcess(AWMSG *pMsg);

void AWRMNotificationProcess(AWMSG *pMsg) ;

extern void AWRMMsgProcess(AWMSG *pMsg);

extern int RunRMPlayer(Playlist_t *playlist);

int GetRMInfo(char *file_name, VIDEO_INFO *video_info);

void rm_play_preview(char *filename);


extern void Update_Video_PreviewScreen_Screen(int no); 
extern void ResumFromLogo();
extern void GetCurrUnSupportItemName();
void String_Init_Time();
void SetSubpicStatus(AVI_SUB_t status);
typedef struct rm_fileinfo{
	double totaltime;
	unsigned  video_codec;//mpeg1,mpeg2
	unsigned    video_kbps;
	unsigned    audio_kbps;
	unsigned short   width;//video resolution
	unsigned short   height;//video resolution
	unsigned    audio_codec;//mpeg/lpcm/ac3/dts
	unsigned    audio_channels;
}RMINFO;
#endif //__AW_RM_APP_H_
